$f: 19.2;

.home {
  // position: relative;
  width: 100%;

  .container {
    padding: 177/$f+vw 167/$f+vw 0 167/$f+vw;
    background: #F9F6F1;
    position: relative;

    .bg {
      position: absolute;
      width: 100%;
      top: 0;
      left: 0;
      pointer-events: none;
      overflow: hidden;
      max-height: 100%;
      img {
        display: block;
        max-height: 100%;
        width: 100%;
        object-fit: cover;
      }
    }

    .main {
      background: #FFF;
      width: 1400/$f+vw;
      padding: 60/$f+vw 131/$f+vw 80/$f+vw 131/$f+vw;
      position: relative;
      z-index: 10;
      margin: 0 auto;

      .r {
        width:100%;

        a {
          position: relative;
          background: rgba(244, 245, 249, 1);
          padding: 61/$f+vw 66/$f+vw 80/$f+vw 59/$f+vw;
          display: block;

          .bg {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: all 600ms;
            img {
              width: 100%;
              display: block;
              height: 100%;
              object-fit: cover;
            }
          }

          .text {
            position: relative;
            z-index: 10;

            .p1 {
              color: #000;
              font-size: 26/$f+vw;
              font-weight: 700;
              transition: all 600ms;
              margin-bottom: 25/$f+vw ;
            }

            .des {
              color: #666;
              transition: all 600ms;
              font-size: 18/$f+vw;
            }
          }

          .tag {
            background: #C00000;
            width: 87/$f+vw;
            text-align: center;
            line-height: 30/$f+vw;
            position: absolute;
            left: -16/$f+vw;
            top:12/$f+vw;
            color: #FFF;
            transition: all 600ms;
            font-size: 18/$f+vw;
          }
          &:hover{
            .bg{
              opacity: 1;
            }
            .text{
              .p1,.des{
                color:white;
              }
            }
            .tag{
              left: 0;
            }
          }

          &:not(:last-child) {
            margin-bottom: 40/$f+vw;
          }
        }
      }
    }
  }



  @media screen and (max-width: 1024px) {
    padding-top: 60px;
    .container{
      padding: 20px 5% 60px 5%;
      .main{
        padding: 20px;
        width: 100%;
        .l{
          display: none;
        }
        .r{
          width: 100%;
          .list{
            a{
              padding: 30px 15px;
              .text{
                position: relative;
                z-index: 10;
                .p1{
                  font-size: 18px;
                  margin-bottom: 10px;
                }
                .des{
                  font-size: 16px;
                }
              }
              .tag{
                width:70px;
                font-size: 12px;
                line-height: 25px;
                left: -30px;
              }
              &:not(:last-child){
                margin-bottom: 20px;
              }
            }
          }
        }
      }
    }
  }
}